properties {
    $buildDir = ".\build"
    $outputDir = "$buildDir\lib\$framework"
    $testsDir = "$outputDir\tests"
}

task default -depends Test

task Test -depends Compile, Clean { 
}

task Compile -depends Clean { 
    $sources = gci ".\Cirrostrata.Abstractions" -r -fi *.cs |% { $_.FullName }
    mkdir $outputDir
    $out = $outputDir + "\Cirrostrata.Abstractions.dll"
    csc /target:library /out:$out $sources 
}

task Clean { 
    if (test-path $outputDir) { ri -r -fo $outputDir }
}

task ? -Description "Helper to display task info" {
	Write-Documentation
}
